package vip.mall.modular.comment.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.Date;

/**
 * @author Asus
 * @Date 2025/2/10 11:35
 * @Descripition 评论实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_comment")
@Builder
public class Comment{
    @Schema(description = "主键")
    private String id;
    @Schema(description = "评论商品id")
    private String goodsId;
    @Schema(description = "评论商品的规格名称")
    private String specName;
    @Schema(description = "评论内容")
    private String comment;
    @Schema(description = "评论时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "评论用户id")
    private String userId;
    @Schema(description = "评论用户评分")
    private Double score;
}
